﻿<%@ Page Language="C#" MasterPageFile="~/Globals/GenericMasterPage.master" AutoEventWireup="true" CodeFile="ABMOrdenPago.aspx.cs" Inherits="Modules_Compras_ABMOrdenPago" Title="Untitled Page" %>

<%@ Register Assembly="WebUtils" Namespace="WebUtils.Controls" TagPrefix="cc2" %>

<%@ Register Src="../../Controls/TecnoPezPopUp.ascx" TagName="TecnoPezPopUp" TagPrefix="uc3" %>
<%@ Register Src="../../Controls/TecnoPezCalendar.ascx" TagName="TecnoPezCalendar"
    TagPrefix="uc4" %>

<%@ Register Src="../../Controls/TecnopezDataGRIDABMView.ascx" TagName="TecnopezDataGRIDABMView"
    TagPrefix="uc2" %>

<%@ Register Src="../../Controls/TecnoPezUpdateProgress.ascx" TagName="TecnoPezUpdateProgress"
    TagPrefix="uc1" %>

<%@ Register Assembly="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    Namespace="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    TagPrefix="cc1" %>
    
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPHPrincipal" Runat="Server">
<asp:Wizard id="wzrABM" runat="server" DisplaySideBar="False" Font-Size="0.8em" Font-Names="Verdana" BorderWidth="0px" BorderColor="#B5C7DE" ActiveStepIndex="1">
<StepStyle ForeColor="#333333" Font-Size="0.8em" VerticalAlign="Top"></StepStyle>

<SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top"></SideBarStyle>

<NavigationButtonStyle BackColor="White" BorderStyle="Solid" ForeColor="#284E98" BorderWidth="1px" BorderColor="#507CD1" Font-Size="0.8em" Font-Names="Verdana"></NavigationButtonStyle>
<WizardSteps>
<asp:WizardStep runat="server" ID="wzrBusqueda" Title="Busqueda" StepType="Complete"><TABLE style="WIDTH: 100%" id="Table1" cellSpacing=0><TBODY><TR><TD class="cabeceraTabla" colSpan=3>Buscar&nbsp;Ordenes de Pago</TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="C&#243;digo" Width="200px" ID="lblBuscarCodigo"></asp:Label>



 </TD><TD style="WIDTH: 210px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtBuscarCodigo"></asp:TextBox>



 </TD><TD vAlign=top rowSpan=2><asp:Button runat="server" ID="cmdBuscar" Width="102px" CssClass="Boton" Text="Buscar" Height="23px" BorderStyle="None"></asp:Button>



 <asp:Button runat="server" ID="cmdNuevo" Width="102px" CssClass="Boton" Text="Nuevo" Height="23px" OnClick="cmdNuevo_Click"></asp:Button>



 </TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Proveedor" Width="200px" ID="Label14"></asp:Label>



 </TD><TD style="WIDTH: 210px" class="columnaData"><asp:DropDownList runat="server" ID="ddlProveedor"></asp:DropDownList>



 </TD></TR><TR><TD colSpan=3><BR /><BR /><uc2:TecnopezDataGRIDABMView runat="server" ID="grdOrdenesPago"></uc2:TecnopezDataGRIDABMView>



 </TD></TR></TBODY></TABLE></asp:WizardStep>
<asp:WizardStep runat="server" ID="wzrEdicion" Title="Edicion" StepType="Complete"><TABLE cellSpacing=0 width="100%"><TBODY><TR><TD style="HEIGHT: 20px" class="cabeceraTabla" colSpan=4>Datos de la Orden de Pago</TD></TR><TR><TD style="WIDTH: 250px; HEIGHT: 26px" class="columnaLabels"><asp:Label runat="server" Text="C&#243;digo" Width="200px" ID="Label1"></asp:Label>
 </TD><TD style="WIDTH: 205px; HEIGHT: 26px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtID"></asp:TextBox>
 </TD><TD style="WIDTH: 1px; HEIGHT: 26px" class="columnaData">&nbsp;</TD><TD style="WIDTH: 7px" vAlign=top rowSpan=4><asp:Button runat="server" ID="cmdEditar" Width="102px" CssClass="Boton" Text="Editar" Height="23px" CausesValidation="False" OnClick="cmdEditar_Click"></asp:Button>
 <asp:Button runat="server" ID="cmdEliminar" Width="102px" CssClass="Boton" Text="Anular" Height="23px" CausesValidation="False" OnClick="cmdEliminar_Click"></asp:Button>
 &nbsp;<BR /></TD></TR><TR><TD style="WIDTH: 250px; HEIGHT: 26px" class="columnaLabels"><asp:Label runat="server" Text="Estado" Width="200px" ID="Label5"></asp:Label>
 </TD><TD style="WIDTH: 205px; HEIGHT: 26px" class="columnaData"><asp:CheckBox runat="server" Text="Anulada" ID="chkAnulada"></asp:CheckBox>
 </TD><TD style="WIDTH: 1px; HEIGHT: 26px" class="columnaData"></TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Proveedor" Width="200px" ID="Label2"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData"><uc3:TecnoPezPopUp runat="server" ID="TPPProveedor" DoPostBack="true"></uc3:TecnoPezPopUp>
 </TD><TD style="WIDTH: 1px" class="columnaData">&nbsp;</TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels" vAlign=top><asp:Label runat="server" Text="Fecha Carga" Width="200px" ID="Label3"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData" vAlign=top>
     <cc2:tecnopezcalendar id="TPCFechaCarga" runat="server" text=""></cc2:tecnopezcalendar>
 </TD><TD style="WIDTH: 1px" class="columnaData" vAlign=top>&nbsp;</TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels" vAlign=top><asp:Label runat="server" Text="Fecha Vencimiento" Width="200px" ID="Label4"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData" vAlign=top>
     <cc2:tecnopezcalendar id="TPCFechaVencimiento" runat="server" text=""></cc2:tecnopezcalendar>
 </TD><TD style="WIDTH: 1px" class="columnaData" vAlign=top></TD><TD style="WIDTH: 7px" vAlign=top rowSpan=1></TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels" vAlign=top><asp:Label runat="server" Text="Moneda" ID="Label7"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData" vAlign=top><uc3:TecnoPezPopUp runat="server" ID="TPPTipoMoneda"></uc3:TecnoPezPopUp>
 </TD><TD style="WIDTH: 1px" class="columnaData" vAlign=top>&nbsp;</TD><TD style="WIDTH: 7px" vAlign=bottom rowSpan=2><asp:Button runat="server" ID="btnAceptar" Width="102px" CssClass="Boton" Text="Aceptar" Height="23px" OnClick="btnAceptar_Click"></asp:Button>
 <asp:Button runat="server" ID="cmdCancelar" Width="102px" CssClass="Boton" Text="Cancelar" Height="23px" CausesValidation="False" OnClick="cmdCancelar_Click"></asp:Button>
 </TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels" vAlign=top><asp:Label runat="server" Text="Total" ID="Label8"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData" vAlign=top><asp:TextBox runat="server" ID="txtTotal"></asp:TextBox>
 </TD><TD style="WIDTH: 1px" class="columnaData" vAlign=top>&nbsp;</TD></TR><TR><TD style="HEIGHT: 25px" vAlign=top colSpan=2><asp:Label runat="server" CssClass="errorLabel" ID="_lblError"></asp:Label>
 <BR /><cc1:PropertyProxyValidator runat="server" ID="PPVProveedor" DisplayMode="List" SetFocusOnError="True" Display="Dynamic" RulesetName="" OnValueConvert="PPVProveedor_ValueConvert"></cc1:PropertyProxyValidator>
 <BR /><cc1:PropertyProxyValidator runat="server" ID="PPVFecha" DisplayMode="List" SetFocusOnError="True" Display="Dynamic" RulesetName="" OnValueConvert="PPVFecha_ValueConvert"></cc1:PropertyProxyValidator>
 <BR /><cc1:PropertyProxyValidator runat="server" ID="PPVFechaVencimiento" DisplayMode="List" SetFocusOnError="True" Display="Dynamic" RulesetName="" OnValueConvert="PPVFechaVencimiento_ValueConvert"></cc1:PropertyProxyValidator>
 <BR /><cc1:PropertyProxyValidator runat="server" ID="PPVTipoMoneda" DisplayMode="List" SetFocusOnError="True" Display="Dynamic" RulesetName="" OnValueConvert="PPVTipoMoneda_ValueConvert"></cc1:PropertyProxyValidator>
 </TD><TD style="WIDTH: 1px; HEIGHT: 25px" vAlign=top colSpan=1></TD><TD style="WIDTH: 7px; HEIGHT: 25px" vAlign=top></TD></TR><TR><TD style="HEIGHT: 25px" vAlign=top colSpan=2>&nbsp; </TD><TD style="WIDTH: 1px; HEIGHT: 25px" vAlign=top colSpan=1></TD><TD style="WIDTH: 7px; HEIGHT: 25px" vAlign=top></TD></TR><TR><TD style="HEIGHT: 20px" class="cabeceraTabla" vAlign=top colSpan=4>Pedidos del Proveedor</TD></TR><TR><TD style="HEIGHT: 25px" class="columnaLabels" vAlign=top colSpan=4><asp:GridView runat="server" ID="grdPedidos" Width="100%" CellPadding="4" GridLines="None" ForeColor="#333333" OnRowCommand="grdPedidos_RowCommand">
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></HeaderStyle>

<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></FooterStyle>

<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>

<EditRowStyle BackColor="#999999"></EditRowStyle>

<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
</asp:GridView>
 </TD></TR><TR><TD class="cabeceraTabla" vAlign=top colSpan=4>Detalle de la Orden de Pago</TD></TR><TR><TD style="HEIGHT: 25px" class="columnaLabels" vAlign=top colSpan=4><asp:GridView runat="server" ID="grdDetalleOp" Width="100%" CellPadding="4" GridLines="None" ForeColor="#333333" OnRowCommand="grdDetalleOp_RowCommand">
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></HeaderStyle>

<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True"></FooterStyle>

<SelectedRowStyle BackColor="#E2DED6" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<AlternatingRowStyle BackColor="White" ForeColor="#284775"></AlternatingRowStyle>

<EditRowStyle BackColor="#999999"></EditRowStyle>

<RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
</asp:GridView>
 </TD></TR><TR><TD style="HEIGHT: 25px" vAlign=top colSpan=4><asp:Label runat="server" CssClass="errorLabel" ID="_lblErrorDetalle"></asp:Label>
 </TD></TR></TBODY></TABLE></asp:WizardStep>
</WizardSteps>

<SideBarButtonStyle BackColor="#507CD1" ForeColor="White" Font-Names="Verdana"></SideBarButtonStyle>

<HeaderStyle BackColor="#284E98" BorderStyle="Solid" ForeColor="White" BorderWidth="2px" BorderColor="#EFF3FB" HorizontalAlign="Center" Font-Size="0.9em" Font-Bold="True"></HeaderStyle>
</asp:Wizard> 
</asp:Content>